import request from '@/utils/request'
import { AxiosPromise } from 'axios'

export enum Api {
  list = '/ordersSettle/list',
  detail = '/ordersSettle/detail',
  export = 'ordersSettle/export',
}

// 获取列表
export const orderSettleList = (data): AxiosPromise<any> => {
  return request({
    url: Api.list,
    method: 'post',
    data,
  })
}

// 获取设备详情
export const orderSettleDetail = (data: any) => {
  return request({
    url: Api.detail,
    method: 'post',
    data,
  })
}
